home *** CD-ROM | disk | FTP | other *** search
- Subject: CyberItems and FW_CWritable/ReadableStream
- Sent: 5/9/96 2:21 AM
- Received: 5/9/96 7:01 AM
- From: Hutchings Software Development, hsd@earthlink.net
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Hi,
-
- It's been noted that ODF 1.0 has Cyberdog support. I ran into a little
- problem this evening with d11, and wonder if 1.0 has a good solution to
- it...
-
- Here's the deal. I've got CyberItems as data members of a dynamic
- archivable class. I followed the archivable class recipe from d11 (date on
- pages is 6/29/95) ODF Reference Manual.
-
- Anyway, the parameter to my "Read" and "Write" methods is a
- FW_CReadableStream and a FW_CWritableStream respectively. However, Cyberdog
- would really prefer to write and read to an ODStorageUnit with methods
- CyberItem::StreamToStorageUnit and CyberSession::CreateCyberItemFromSU. I
- tried getting the storage unit from the streams, but I couldn't get it to
- work without crashing hard.
-
- Another alternative is to use CyberItem::Flatten and then try to put the
- CyberItem back together (not trivial, given the Cyberdog API - it would be
- nice if the CyberSession object had a public method for Unflattening). I
- haven't trued that yet.
-
- Yet another alternative is to just store the URL, but that's not quite as
- good as storing the whole item.
-
- So, my question is... How will I deal with CyberItems from dynamic
- archiving classes? Is there an obvious workaround for d11?
-
- Brad
-
-
-
- Richard B. "Brad" Hutchings
- General Partner,
- Hutchings Software Development
-
- hsd@earthlink.net
-